import Vue from 'vue'
import Vuex from 'vuex'
import storeUtil from './utils/storeUtil'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
      audioRef:null,
      clientMsgVersion:0,
      serverMsgVersion:0,
      newReport: [],
      listenAllRoom:false,
      userState:{
          uname:"",
          room:""
      },
      xSetting:{
          browser:"关闭",
          render:"自动",
          form:{
          }
      }
  },
  mutations: {
      ...storeUtil.makeMutations(["audioRef","userState","xSetting","clientMsgVersion","serverMsgVersion","newReport","listenAllRoom"])
  },
  actions: {

  }
})
